/**
 * JAVACC DEMO 1.0
 * @copy right dwusoft company All rights reserved. 
 * @Package com.apache.info.service.plugins  
 */
package com.apache.info.service.plugins;

import com.apache.api.vo.ParamsVo;
import com.apache.info.manager.InfoReleaseManager;

/**
 * description:  动态获取信息数
 * @author Hou Dayu 创建时间：2015-8-29  
 * @Copyright(c)2014:北京--软件技术有限公司
 */
public class CountDynamicInfoPluginImpl extends AbstractInfoReleasePlugin {

	private InfoReleaseManager InfoReleaseManager;

	/**
	 * TODO 动态获取信息数插件实现  
	 * @see com.apache.info.service.plugins.AbstractInfoReleasePlugin#doInvoke(com.apache.api.vo.ParamsVo)  
	 */
	protected Object doInvoke(ParamsVo vo) {
		long count = InfoReleaseManager.countInfo(vo);
		return count;
	}

	public void setInfoReleaseManager(InfoReleaseManager infoReleaseManager) {
		InfoReleaseManager = infoReleaseManager;
	}

}
